/**
 *
 * @description:
 * @author:junyong.hong
 * @createTime:2017/12/27
 * @version:1.0.0.0
 * @history:
 *    1、
 *    2、
 *
 */

define([
    'app',
    'js/directive/parentDirective/parentDirectiveCtrl'
],function (app) {
    'use strict';
    app.directive('parentDirective',[function () {
        return{
            restrict:'EAC',
            // template:'<span>{{ oliColor() }}</span>',// oliColor()：调用父级的callback()
            // 上面的注释调用同下面两种方法
            templateUrl: 'js/directive/parentDirective/parentDirective.html',
            controller: 'parentDirectiveCtrl',
            scope:{
                oliColor:'&hdColor'
            }

        }
    }]);
});


